home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 26 / AACD 26.iso / AACD / Programming / ace_gpl_release / src / lib / asm / sound_data.s < prev    next >
Encoding:
Text File  |  1998-10-04  |  1.8 KB  |  82 lines

  1. ;
  2. ; Data/BSS references for sound.s.
  3. ; Copyright (C) 1998 David Benn
  4. ; This program is free software; you can redistribute it and/or
  5. ; modify it under the terms of the GNU General Public License
  6. ; as published by the Free Software Foundation; either version 2
  7. ; of the License, or (at your option) any later version.
  8. ;
  9. ; This program is distributed in the hope that it will be useful,
  10. ; but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. ; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12. ; GNU General Public License for more details.
  13. ;
  14. ; You should have received a copy of the GNU General Public License
  15. ; along with this program; if not, write to the Free Software
  16. ; Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
  17. ;
  18. ; Author: David J Benn
  19. ;   Date: 3rd April 1994
  20. ;
  21.  
  22.     ; constants
  23.  
  24. SIN_wave_length EQU 16
  25.  
  26.  
  27.     ; sound xdefs & routines
  28.     xdef    _initialise_waveform_data
  29.     xdef    _waveformaddr0
  30.     xdef    _waveformaddr1
  31.     xdef    _waveformaddr2
  32.     xdef    _waveformaddr3
  33.     xdef    _wavelen0
  34.     xdef    _wavelen1
  35.     xdef    _wavelen2
  36.     xdef    _wavelen3
  37.     xdef    _sinwavedata
  38.  
  39.  
  40.     SECTION sound_data_code,CODE
  41.  
  42. ;
  43. ; initalise waveforms and waveform lengths.
  44. ;
  45. _initialise_waveform_data:
  46.     lea    _sinwavedata,a0
  47.  
  48.     move.l    a0,_waveformaddr0
  49.     move.l    a0,_waveformaddr1
  50.     move.l    a0,_waveformaddr2
  51.     move.l    a0,_waveformaddr3
  52.     
  53.     move.w    #SIN_wave_length,_wavelen0
  54.     move.w    #SIN_wave_length,_wavelen1
  55.     move.w    #SIN_wave_length,_wavelen2
  56.     move.w    #SIN_wave_length,_wavelen3
  57.  
  58.     rts
  59.  
  60. ; *************************
  61.  
  62.     SECTION wave_data,DATA,CHIP
  63.  
  64. _sinwavedata:    dc.b  -90,-127,-90,0,90,127,90,0,-90,-127,-90,0,90,127,90,0
  65.         dc.b  -90,-127,-90,0,90,127,90,0,-90,-127,-90,0,90,127,90,0
  66.  
  67.  
  68.     SECTION sound_data_mem,BSS
  69.  
  70. ; * wave *
  71. _waveformaddr0:        ds.l 1
  72. _waveformaddr1:        ds.l 1
  73. _waveformaddr2:        ds.l 1
  74. _waveformaddr3:        ds.l 1
  75. _wavelen0:        ds.w 1
  76. _wavelen1:        ds.w 1
  77. _wavelen2:        ds.w 1
  78. _wavelen3:        ds.w 1
  79.  
  80.     END
  81.